package com.xingkeduo.business.order.remote.feign;

import com.xingkeduo.dto.BatchLockStockParam;
import com.xingkeduo.dto.StockForOrderVo;
import com.xingkeduo.dto.StockParam;
import com.xingkeduo.util.pojo.exception.BusinessException;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author chi  2019-04-18 21:48
 **/
@Service
public class WordPadFeignServiceImpl implements WordPadFeignService {

    @Override
    public ResponseUtils lockStockBystockId(Long stockId, String orderNo, byte status, String lineNo, String userPath,Long storeId) {
        return ResponseUtils.error("锁定库存失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils unlockStockBystockId(String orderNo,Long storeId) {
        return ResponseUtils.error("解锁库存失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<StockForOrderVo> lockMinFreeStock(StockParam stockParam) {
        return ResponseUtils.error("今日无库存无法代购,请使用随星付支付", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils batchLockStockBystockId(List<BatchLockStockParam> batchLockStockParams) {
        return ResponseUtils.error("锁定多库存失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils batchUnlockStockBystockId(List<BatchLockStockParam> batchLockStockParams) {
        return ResponseUtils.error("解锁多库存失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils<Boolean> getStockIsEnable(Long storeId, String orderNo) {
        return ResponseUtils.error("库存校验失败", BusinessException.Type.DEFAULT.getCode());
    }

    @Override
    public ResponseUtils changeStockBystockIdAndorderNo(Long stockId, String orderNo, byte status, Long storeId,String lineNo) {
        return ResponseUtils.error("改约失败", BusinessException.Type.DEFAULT.getCode());
    }

}
